package com.rock.code.system.user.dao;

import com.rock.code.base.dao.BaseDao;
import com.rock.code.system.user.domain.TbSysLoginmsg;

import java.util.Map;

/**
 * 用户管理 Dao 接口
 *
 * @author kongqiang
 * @date 2017 /04/06
 */
public interface TbSysLoginmsgDao extends BaseDao<TbSysLoginmsg> {

    /**
     * Login by para map.
     *
     * @param param the param
     * @return the tb sys user
     * @throws Exception the exception
     * @author kongqiang
     * @date 2017.04.06 /06/15
     */
    TbSysLoginmsg loginByParaMap(Map<String, Object> param) throws Exception;

    /**
     * Login by para map.
     *
     * @param param the param
     * @return the int
     * @throws Exception the exception
     * @author wangwenbo
     * @date 2018.01.23 /06/15
     */
    int updatePassword(Map<String, Object> param) throws Exception;

    /**
     * Query cas realm tb sys loginmsg.
     *
     * @param param the param
     * @return the tb sys loginmsg
     * @throws Exception the exception
     * @author kongqiang
     * @date 2018 /06/15
     */
    TbSysLoginmsg queryCasRealm(Map<String, Object> param) throws Exception;
}